﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" autoFlush="true"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/displaytag-el.tld" prefix="display" %>
<%@ taglib uri="/WEB-INF/qautil.tld" prefix="qautil"%>
<jsp:include page="viewuserinfobyother.jsp"/>
<br>
<table align="center" width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
            <span class="title">
                <html:link page="/user.mrqa?action=viewuserbyother" paramId="id" paramName="usero" paramProperty="id">
                个人帖子
                </html:link>
            </span>
            <span class="title">
                <html:link page="/user.mrqa?action=viewanswersbyother" paramId="id" paramName="usero" paramProperty="id">
                    个人问复
                </html:link>
            </span>
            <span class="title1">
                <html:link page="/user.mrqa?action=viewsharedfilesbyother" paramId="id" paramName="usero" paramProperty="id">
                共享资料
                </html:link>
            </span>
            <span class="title">
            	<html:link page="/user.mrqa?action=viewspendbyother" paramId="id" paramName="usero" paramProperty="id">积分兑换</html:link>
            </span>
            <span class="title">
            	<html:link page="/user.mrqa?action=viewawardbyother" paramId="id" paramName="usero" paramProperty="id">积分奖励</html:link>
            </span>
        </td>
        <td align="right">共享资料总数:<b><c:out value="${resultSize}"/></b>&nbsp;&nbsp;</td>
    </tr>
</table>
<%request.setAttribute("curDate",new java.util.Date());%>
<display:table name="sfs" class="qlist" id="sf" cellspacing="0" cellpadding="0">
        <display:column title="分类">
            <c:set var="sfc_id" value="${sf.mrIaskSharedFileCategory.id}"/>
            <html:link page="/sf.mrqa?action=list" paramId="catId" paramName="sfc_id">
                        [<c:out value="${sf.mrIaskSharedFileCategory.name}"/>]
            </html:link>
        </display:column>
    <display:column title="资料名称">
        <html:link page="/sf.mrqa?action=view" paramId="id" paramProperty="id" paramName="sf" title="点击下载">
            <c:out value="${sf.name}"/>
        </html:link>
            <c:set var="differSF" value="${(curDate.time-sf.postDate.time)/3600000}"/>
            <c:if test="${differSF <= 48}">
                <font color="#FF0000" title="48小时内新问复">(new)</font>
            </c:if>
    </display:column>
    <display:column property="postDate" title="上传时间" format="{0,date,yyyy-MM-dd}" style="width:70;"/>
    <display:column title="访问/下载" style="width:60;">
            <c:out value="${sf.viewCount}"/>/<c:out value="${sf.downloadCount}"/>
    </display:column>
</display:table>
<br>
<qautil:page action="/user.mrqa"/>